Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6e1b469e
Commit
6e1b469e
authored
Aug 24, 2013
by
Jan Djärv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gtkutil.c (x_wm_set_size_hint): Don't set hints when maximized
or fullscreen. Fixes: debbugs:14627
parent
9c05bccf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/gtkutil.c
src/gtkutil.c
+11
-0
No files found.
src/ChangeLog
View file @
6e1b469e
2013-08-24 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (x_wm_set_size_hint): Don't set hints when maximized
or fullscreen (Bug#14627).
2013-08-24 Paul Eggert <eggert@cs.ucla.edu>
System-dependent integer overflow fixes.
...
...
src/gtkutil.c
View file @
6e1b469e
...
...
@@ -1341,6 +1341,7 @@ x_wm_set_size_hint (struct frame *f, long int flags, bool user_position)
int
base_width
,
base_height
;
int
min_rows
=
0
,
min_cols
=
0
;
int
win_gravity
=
f
->
win_gravity
;
Lisp_Object
fs_state
,
frame
;
/* Don't set size hints during initialization; that apparently leads
to a race condition. See the thread at
...
...
@@ -1348,6 +1349,16 @@ x_wm_set_size_hint (struct frame *f, long int flags, bool user_position)
if
(
NILP
(
Vafter_init_time
)
||
!
FRAME_GTK_OUTER_WIDGET
(
f
))
return
;
XSETFRAME
(
frame
,
f
);
fs_state
=
Fframe_parameter
(
frame
,
Qfullscreen
);
if
(
EQ
(
fs_state
,
Qmaximized
)
||
EQ
(
fs_state
,
Qfullboth
))
{
/* Don't set hints when maximized or fullscreen. Apparently KWin and
Gtk3 don't get along and the frame shrinks (!).
*/
return
;
}
if
(
flags
)
{
memset
(
&
size_hints
,
0
,
sizeof
(
size_hints
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment