Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfwm4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
xfwm4
Commits
d7105b23
Commit
d7105b23
authored
20 years ago
by
Olivier Fourdan
Browse files
Options
Downloads
Patches
Plain Diff
Don't restack if the sibling is unknown.
(Old svn revision: 12212)
parent
962c2923
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
po/xfwm4.pot
+1
-1
1 addition, 1 deletion
po/xfwm4.pot
src/compositor.c
+36
-24
36 additions, 24 deletions
src/compositor.c
with
37 additions
and
25 deletions
po/xfwm4.pot
+
1
−
1
View file @
d7105b23
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-12-1
3
2
2:44
+0100\n"
"POT-Creation-Date: 2004-12-1
4
2
0:31
+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
This diff is collapsed.
Click to expand it.
src/compositor.c
+
36
−
24
View file @
d7105b23
...
...
@@ -1490,9 +1490,9 @@ void
restack_win
(
CWindow
*
cw
,
Window
above
)
{
ScreenInfo
*
screen_info
=
NULL
;
Window
previous_above
=
None
;
GList
*
sibling
;
GList
*
next
;
GList
*
index
;
g_return_if_fail
(
cw
!=
NULL
);
TRACE
(
"entering restack_win"
);
...
...
@@ -1500,32 +1500,46 @@ restack_win (CWindow *cw, Window above)
screen_info
=
cw
->
screen_info
;
sibling
=
g_list_find
(
screen_info
->
cwindows
,
(
gconstpointer
)
cw
);
next
=
g_list_next
(
sibling
);
screen_info
->
cwindows
=
g_list_delete_link
(
screen_info
->
cwindows
,
sibling
);
for
(
index
=
screen_info
->
cwindows
;
index
;
index
=
g_list_next
(
ind
ex
)
)
if
(
n
ex
t
)
{
CWindow
*
cw2
=
(
CWindow
*
)
index
->
data
;
if
(
cw2
->
id
==
above
)
{
break
;
}
CWindow
*
ncw
=
(
CWindow
*
)
next
;
previous_above
=
ncw
->
id
;
}
if
(
index
!=
NULL
)
{
screen_info
->
cwindows
=
g_list_insert_before
(
screen_info
->
cwindows
,
index
,
cw
);
}
else
if
(
above
==
None
)
{
/* Insert at bottom of window stack */
screen_info
->
cwindows
=
g_list_append
(
screen_info
->
cwindows
,
cw
);
}
else
if
(
previous_above
!=
above
)
{
/* Insert at top of window stack */
g_warning
(
"The window 0x%lx has been placed on top of stack
\n
"
"because the specified sibling 0x%lx was not found in our stack"
,
cw
->
id
,
above
);
screen_info
->
cwindows
=
g_list_prepend
(
screen_info
->
cwindows
,
cw
);
GList
*
index
;
for
(
index
=
screen_info
->
cwindows
;
index
;
index
=
g_list_next
(
index
))
{
CWindow
*
cw2
=
(
CWindow
*
)
index
->
data
;
if
(
cw2
->
id
==
above
)
{
break
;
}
}
if
(
index
!=
NULL
)
{
screen_info
->
cwindows
=
g_list_delete_link
(
screen_info
->
cwindows
,
sibling
);
screen_info
->
cwindows
=
g_list_insert_before
(
screen_info
->
cwindows
,
index
,
cw
);
}
else
if
(
above
==
None
)
{
/* Insert at bottom of window stack */
screen_info
->
cwindows
=
g_list_delete_link
(
screen_info
->
cwindows
,
sibling
);
screen_info
->
cwindows
=
g_list_append
(
screen_info
->
cwindows
,
cw
);
}
#ifdef DEBUG
else
{
/* Don't know what to do */
g_warning
(
"The window 0x%lx has not been restacked
\n
"
"because the specified sibling 0x%lx was
\n
"
"not found in our stack"
,
cw
->
id
,
above
);
}
#endif
}
}
...
...
@@ -1839,8 +1853,6 @@ compositorHandleCirculateNotify (DisplayInfo *display_info, XCirculateEvent *ev)
static
void
compositorHandleCreateNotify
(
DisplayInfo
*
display_info
,
XCreateWindowEvent
*
ev
)
{
CWindow
*
cw
;
g_return_if_fail
(
display_info
!=
NULL
);
g_return_if_fail
(
ev
!=
NULL
);
TRACE
(
"entering compositorHandleCreateNotify for 0x%lx"
,
ev
->
window
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment